package com.pangolin.pangolinim.service.system;


/**
 * 该类用于记录App的运行时状态(配置信息)
 * 生命周期和服务相同
 */
public class AppRuntime {
    private static boolean mIsNotify;         //是否开启全局通知
    private static int mSessionUid;           //正在进行会话的用户uid
    private static String mHost;              //消息服务器IP地址
    private static int mPort;                 //消息服务器端口
    private static String mFileHost;          //文件服务器地址

    public static void setIsNotify(boolean isNotify){ mIsNotify = isNotify; }

    public static boolean getIsNotify(){ return mIsNotify; }

    public static void setSessionUid(int sessionUid){ mSessionUid = sessionUid; }

    public static int getSessionUid(){ return mSessionUid; }

    public static String getHost(){
        return mHost;
    }

    public static void setFileHost(String fileHost){mFileHost = fileHost;}

    public static String getFileHost(){ return mFileHost; }

    public static void setHost(String host){
        mHost = host;
    }

    public static int getPort(){
        return mPort;
    }

    public static void setPort(int port){
        mPort = port;
    }

}
